package com.example.coffeejava.Entity;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("orders")
public class Order {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String orderId;
    private Integer shopId;
    private Long userId;
    private Integer totalPrice;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private String status;
@TableField(exist = false)
    private List<OrderItem> list;
    @TableField(exist = false)
    private String shopName;
    @TableField(exist = false)
    private String userName;

}
